package com.bdqn.factory;
import com.bdqn.dao.NewsDao;
public class SimpleDaoFactory {
    /**
     * 第三章实例4
     * @param key
     * @return
     */
    /*public static NewsDao getInstance(String key){
        switch (key){
            case "mysql":
                return new NewsDaoMysqlImpl();
                case "oracle":
                    return new NewsDaoOracleImpl();
            case "redis":
                return new NewsDaoRedisImpl();

            default:
                throw new RuntimeException("无效的数据库类型:"+key+",DAO获取失败");
        }
    }*/
}
